package com.ruoyi.be.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.be.mapper.MedicalCpoeBedMapper;
import com.ruoyi.be.domain.MedicalCpoeBed;
import com.ruoyi.be.service.IMedicalCpoeBedService;

/**
 * 床位记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-01-05
 */
@Service
public class MedicalCpoeBedServiceImpl implements IMedicalCpoeBedService 
{
   @Autowired
    private MedicalCpoeBedMapper medicalCpoeBedMapper;

    /**
     * 查询床位记录
     * 
     * @param id 床位记录主键
     * @return 床位记录
     */
    @Override
    public MedicalCpoeBed selectMedicalCpoeBedById(String id)
    {
        return medicalCpoeBedMapper.selectMedicalCpoeBedById(id);
    }

    /**
     * 查询床位记录列表
     * 
     * @param medicalCpoeBed 床位记录
     * @return 床位记录
     */
    @Override
    public List<MedicalCpoeBed> selectMedicalCpoeBedList(MedicalCpoeBed medicalCpoeBed)
    {
        return medicalCpoeBedMapper.selectMedicalCpoeBedList(medicalCpoeBed);
    }

 @Override
 public List<MedicalCpoeBed> selectMedicalCpoeBedListName(String sickroomname) {
  return medicalCpoeBedMapper.selectMedicalCpoeBedListName(sickroomname);
 }

    @Override
    public List<MedicalCpoeBed> selectMedicalCpoeBedVo() {
        return medicalCpoeBedMapper.selectMedicalCpoeBedVo();
    }

    @Override
    public List<MedicalCpoeBed> selectMedicalCpoeBedbysickroomname(String sickroomname) {
        return medicalCpoeBedMapper.selectMedicalCpoeBedbysickroomname(sickroomname);
    }



    /**
     * 新增床位记录
     * 
     * @param medicalCpoeBed 床位记录
     * @return 结果
     */
    @Override
    public int insertMedicalCpoeBed(MedicalCpoeBed medicalCpoeBed)
    {

        return medicalCpoeBedMapper.insertMedicalCpoeBed(medicalCpoeBed);
    }

    /**
     * 修改床位记录
     * 
     * @param medicalCpoeBed 床位记录
     * @return 结果
     */
    @Override
    public int updateMedicalCpoeBed(MedicalCpoeBed medicalCpoeBed)
    {
        return medicalCpoeBedMapper.updateMedicalCpoeBed(medicalCpoeBed);
    }

    /**
     * 批量删除床位记录
     * 
     * @param ids 需要删除的床位记录主键
     * @return 结果
     */
    @Override
    public int deleteMedicalCpoeBedByIds(String[] ids)
    {
        return medicalCpoeBedMapper.deleteMedicalCpoeBedByIds(ids);
    }

    /**
     * 删除床位记录信息
     * 
     * @param id 床位记录主键
     * @return 结果
     */
    @Override
    public int deleteMedicalCpoeBedById(String id)
    {
        return medicalCpoeBedMapper.deleteMedicalCpoeBedById(id);
    }
}
